home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 30
/
Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso
/
Aminet
/
gfx
/
conv
/
CreateIndex.lha
/
CreateIndex.doc
< prev
next >
Wrap
Text File
|
1999-01-21
|
5KB
|
125 lines
CreateIndex
===========
An arexx script to create HTML picture index using ImageStudio
Release v3.1
Contents
What does it do?
How do you use it?
To do
History
Who wrote this?
What does it do?
Anyone with more than a handful of pictures with know that even with the
most verbose filenames it can still be hard to track down the particular image
which you seek. So people have written various proggys to catalogue your
pics. The simplest of these being those that create thumbnails (small
versions) of your pics and generate a HTML file to allow them to be
viewed in favouite browser. You've guessed it this is what CreateIndex does!
Requirements
An Amiga!
ImageStudio, available free with CU Amiga May 1997
Arexx, preferable running
Graphical HMTL viewer, a browser or HTML datatype, only neccessary
if you wish to view the results!?
Features
Small, its an Arexx script
Fast, uses ImageStudio rather than datatypes
Update index, doesn't regenerate thumbnails
Can generate image dimensions for progressive loading,
alternative version
Generates text links for unrecognised files, this is mainly because
ImageStudio can't load progressive jpegs (its only failing), but you
could actually create a table of document links!
Generates multiple pages with previous and next links
Writes the sizes for all the thumbnails for fast loading of tables
Loads of comments in the script, simply unheard of!
Some extra scripts that may be of interest
How do you use it?
Installation
Copy the files from the Rexx directory to your ImageStufdio/Rexx
directory. Stick this file where you like it. That's all.
CreateIndex.isrx - original script
Extra Scripts
Convert2PNG.isrx - does exactly what it says
Convert2PNG16BW.isrx - generates 16 colour greyscale PNG,
useful for black and white artwork
BatchProcess.isrx - update of original example script, now
supports all formats that ImageStudio has
BatchProcessNotify.isrx - update of original example script,
now supports all formats that ImageStudio has
Usage
Initially : Open the scripts window in ImageStudio and double click
on CreateIndex. Shift select all files you want to be in index or just hit
'All'. Wait with baited breath. A file called index.html will be generated in the
directory as well as the thumbnails. If you have selected more than row*columns images (default 10*5=50)
additional files called index2.html etc. will be created.
Updating : If you have added more files to a directory simply repeat
the previous process the file pattern will be set not to show the index files
(other html files will appear) or any thumbnails.
Advanced : All the parameters are constants defined in the script
itself this means if you want to change things you will need to edit the
script yourself Shreaks of horror!!!. Don't worry its dead easily if
you can type and breath (preferably at the same time). All the values that
you may wish to change are near the top of the script:
/* PROGRAM CONSTANTS - change these values to suit */
HTMLFile='Index.html' /* What to call the html file, Oh Yes */
SquareSize=100 /* Size of square into which to fit pic */
TNFormat='PNG' /* Thumbnail file format */
TNArgs='INTERLACE=ADAM7'/* Thumbnail file format arguments */
TNExten='png' /* Thumnail file extension */
TNPrefix='TN' /* Thumbnail prefix */
TableColumns=5 /* No. of pics per row */
TableRows=10 /* No. of rows in table in each index file */
TableBorder=1 /* Size of table borders, in pixels */
FilePattern='~('HTMLFile'|'TNPrefix'#?)' /* only change if you understand arexx */
Useful Tips
Minimise the image window before batch processing a lot of images as it will
make the redraw time shorter and decrease the time for the batch process to run
To do
All done! (Hopefully)
History
V1.0 2 Nov 97 by James Perrin
V2.0 19 Nov 97 added ability to update an index if new images have been added to the directory
V2.1 24 May 98 added skipping of files unable to load eg progressive jpegs
V2.1D 25 May 98 added thumbnail dimension gernation, split development into two scripts
V3.0 25 June 98 added max table rows => multiple HTML file generation
V3.1 20 Jan 99 add constant for file args. Second public release
Who wrote this?
James S Perrin j.perrin@mcc.ac.uk
This archive is freely distributable as long as the archive remains
unchanged. Copyright remains with the author. I'd appreciate an email if
anyone likes it.